package com.djsearch.ui;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;

import com.djsearch.R;
import com.djsearch.controller.JSONResp;
import com.djsearch.util.AsyncImageLoader;

/**
 * 提交订单页面
 * @author chenyang2
 *
 */
public class SureOrderActivity extends BaseActivity{
	private Button backBtn;
	private Context mContext;
	private TextView sureBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		mContext = this;
		getWindow().requestFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(
				WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
		getWindow().setSoftInputMode(
				WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
		setContentView(R.layout.hand_dingdan_layout);
		initView();
		initOnClick();
	}

	@Override
	void initHandler() {
		// TODO Auto-generated method stub
		
	}

	@Override
	void initView() {
		// TODO Auto-generated method stub
		sureBtn = (TextView)findViewById(R.id.handDingDanBtn);
		backBtn = (Button)findViewById(R.id.btnBack);
	}

	@Override
	void initOnClick() {
		// TODO Auto-generated method stub
		sureBtn.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				startActivity(mContext, HandMyOrderActivity.class, 0);
			}
		});
		backBtn.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}

	@Override
	void getDataToResolve(JSONResp response) {
		// TODO Auto-generated method stub
		
	}

}
